import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
import('./assets/css/global.css')
import('./assets/fonts/iconfont.css')
import axios from "axios";
import moment from 'moment'
import echarts from 'echarts'
import store from './store/index';



Vue.prototype.$moment = moment
Vue.prototype.$echarts = echarts
// axios.defaults.baseURL='http://42d74x4037.wocp.fun'
axios.defaults.baseURL='http://47.106.71.32:8080'
axios.interceptors.request.use(config=>{
  config.headers.Authorization = window.sessionStorage.getItem('token')
  // console.log(config)
  return config
})


Vue.prototype.$http = axios
Vue.config.productionTip = false;


// 把SocketService实例挂载到Vue原型上
// Vue.prototype.$socket = SocketService.Instacne


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
